<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">
<h:head><title>p:calendar -- Exercises</title>
</h:head>
<h:body>

<div align="center">
<h1 class="ui-widget-header ui-corner-all" align="center">p:calendar -- Exercises</h1>
<br/>
<p:fieldset legend="JSF Resort Registration (Custom Validation)">
<h:form>
   <h2>Register for the JSF Resort</h2>
   <p:messages/>
   <!--  Note that validatorMessage not needed because the UI
         will not let you enter an illegal date. -->
   <b>Start date:</b> 
   <p:calendar value="#{resortRegistration.startDate}"
               required="true"
               requiredMessage="Start date required"/><br/>
   <b>End date:</b> 
   <p:calendar value="#{resortRegistration.endDate}"
               required="true"
               requiredMessage="End date required"/><br/>
   <p:commandButton action="#{resortRegistration.register}" 
                    value="Register" ajax="false"/><p/>
</h:form>
</p:fieldset>
<br/>
</div>
</h:body></html>